<html>

<head>
  <title></title>
</head>

<body>

<h2>Pilots Roster</h2>


<table border=1 cellpaddong=5>

<tr>
	<td>Name</td>
    <td>Banned from flying</td>
</tr>

<form method=post enctype="multipart/form-data">

<?php

	foreach ($VARS[allsqpilots] as $pilot) {

    	echo "<tr><td>".$pilot[callsign]."</td>";

        if ($pilot[is_banned])
        	echo "<td><input type=checkbox name='banned[".$pilot[callsign]."]' checked></td>";
        else
        	echo "<td><input type=checkbox name='banned[".$pilot[callsign]."]'></td>";

        echo "</tr>";

    }

?>

    <tr>
    	<td colspan=2>
        	<input type=submit name=dopost class=input value="Change">
        </td>
    </tr>

	</form>

</body>

</html>